#include "map.h"
#include "game.h"
#include "mainmenu.h"
#include "util.h"
#include "scene.h"
#include "objmanager.h"

namespace Game {

bool playFrame()
{
	float		dt=hge->Timer_GetDelta();
    if (hge->Input_KeyDown(HGEK_ESCAPE)) 
        return true;
	state.scene->mX = state.screenx;
	state.scene->mY = state.screeny;
	if( hge->Input_KeyDown(HGEK_Q) )
	{
		PopGameStack();
	}
	ObjManager::Instance().UpdateObjs( dt*1000 );
	state.scene->Update();
    return false;
}

bool playRender()
{
    int screenx=state.screenx; int screeny = state.screeny;
    font->Print(mapviewarea.x, mapviewarea.y, "%d, %d", screenx, screeny);
	state.scene->Render();
    //state.curmap->Render(mapviewarea.x,mapviewarea.y,state.screenx,state.screeny);
    return false;
}

void newGame()
{

}
}